<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>课室信息修改</title>

		<link href="<%=basePath%>js/calendar/skins/aqua/theme.css"
			rel="stylesheet" />
		<link href="<%=basePath%>js/validate/jquery.validate.css"
			rel="stylesheet" />
		<script type="text/javascript" src="<%=basePath%>js/jquery-1.4.2.js"></script>
		<script type="text/javascript"
			src="<%=basePath%>js/validate/jquery.validate.js"></script>
		<script type="text/javascript"
			src="<%=basePath%>js/validate/messages_cn.js"></script>
		<script type="text/javascript">
			$(function() {
				$("#classRoomInfoForm").validate( {
					rules : {
						"classroomInfo.classRoom" : {
							required : true,
							maxlength : 50
						},
						"classroomInfo.capacity" : {
							required:true,
							number:true,
							maxlength : 10
						}
					}
				})
			});
		</script>
	</head>

	<body bgcolor="#D6E0EF">
		<div align="center">
			<form name="classRoomInfoForm" id="classRoomInfoForm" method="post"
				action="updateInfo!updateArrangeInfo">
				<table align="center">
					<s:iterator value="arrange">
						<tr>
							<td>
								课室名称：
							</td>
							<td align="left">
								<input type="text" name="arrange.classRoom"
									id="arrange.classRoom"
									value="<s:property value="classRoom" />" />
							</td>
						</tr>
						<tr>
							<td>
								课室类型：
							</td>
							<td align="left">
								<select name="arrange.roomType"
									id="arrange.roomType">
									<s:if test="roomType==1">
										<option value="1" selected="selected">
											普通教室
										</option>
									</s:if>
									<s:else>
										<option value="1">
											普通教室
										</option>
									</s:else>
									<s:if test="roomType==2">
										<option value="2" selected="selected">
											多媒体教室
										</option>
									</s:if>
									<s:else>
										<option value="2">
											多媒体教室
										</option>
									</s:else>
								</select>
							</td>
						</tr>
						<tr>
							<td>
								容纳人数：
							</td>
							<td align="left">
								<input type="text" name="arrange.capacity"
									id="arrange.capacity"
									value="<s:property value="capacity" />" />
							</td>
						</tr>
						<tr>
							<td>
								备&nbsp;&nbsp;&nbsp;&nbsp;注：
							</td>
							<td align="left">
								<input type="text" name="arrange.memo"
									id="arrange.memo" value="<s:property value="memo" />" />
							</td>
						</tr>
						<tr>
							<td></td>
							<td>
								<input type="reset" name="button" id="button" value="重置" />
								<input type="submit" name="button" id="button" value="更新" />
							</td>
						</tr>
					</s:iterator>
				</table>
			</form>
		</div>
	</body>
</html>
